/-app ...
FileTree.ts
TopLayout.ts
main.css
start.ts
/-imports
/-storage
/-storage/api
PropertiesByFullPath.ts
StorageAccess.ts
StorageDetect.ts
/-storage/indexedDB
FileData.ts
MetadataData.ts
StorageAccess.ts
StorageDetect.ts
functions.ts
/-storage/localStorage
StorageAccess.ts
StorageDetect.ts
/-storage/webSQL
functions.ts
/-typings
codemirror.d.ts
websql.d.ts
functions.ts
index.html
 
1
module teapo.app {
2
​
3
  export function start() {
4
    var topLayoutElement: HTMLElement = null;
5
    for (var i = 0; i < document.body.children.length; i++) {
6
      var elem = <HTMLElement>document.body.children[i];
7
      if (elem.className === 'teapo-flyout-scroller') {
8
        topLayoutElement = <any>elem;
9
        break;
10
      }
11
    }
12
    
13
    if (!topLayoutElement) {
14
      console.log('Where is the root layout element??');
15
      return;
16
    }
17
    
18
    var layout = new teapo.app.TopLayout(topLayoutElement);
19
  }
20
​
21
}
1:0